package cc.w3d.jawos.apps.artiks.manager.client.rpc;

import java.util.List;

import cc.w3d.jawos.apps.artiks.manager.client.beans.Article;
import cc.w3d.jawos.apps.artiks.manager.client.beans.ResourceItem;
import cc.w3d.jawos.apps.artiks.manager.client.beans.ResourceType;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface ArtiksManagerServiceAsync
{
	void getChilds(String id, AsyncCallback<List<ResourceItem>> callback);

	void addChild(String parentResourceId, ResourceType type, String name,
			AsyncCallback<ResourceItem> callback);

	void removeItem(String itemId, AsyncCallback<Void> callback);

	void getArticle(String itemId, AsyncCallback<Article> callback);

	void setArticle(String itemId, Article article, AsyncCallback<Void> callback);

	void getArticles(int n, AsyncCallback<List<Article>> callback);

	void countArticles(AsyncCallback<Integer> callback);

}
